#include "showmusicinfo.h"
#include<QHBoxLayout>
#include<QLabel>

ShowMusicInfo::ShowMusicInfo(QWidget *parent) :
    QWidget(parent)
{
    Name = new QLabel(this);
    Artist = new QLabel(this);
    Album = new QLabel(this);
    Genre = new QLabel(this);

    Layout = new QHBoxLayout(this);
    Layout->addWidget(Name);
    Layout->addWidget(Artist);
    Layout->addWidget(Album);
    Layout->addWidget(Genre);
}

void ShowMusicInfo::getNewSongInfo(QString Name, QString Artist, QString Album, QString Genre)
{
    this->Name->setText(Name+"  ");
    this->Artist->setText(Artist+"  ");
    this->Album->setText(Album+"  ");
    this->Genre->setText(Genre);
}

